package com.luo.stu;

/**
* @author: luosiyu
* @Description:
* @Version: 1.0
*/

public class Student {
    public  String num;//101
    public  String name;//zs
    public int english;
    public int math;
    public int java;
    Student()
    {
        num="";
         name="";
         english=0;
         math=0;
         java=0;
    }
    Student(String num, String name, int english, int math, int java)
    {
        this.num = num;
        this.name =name;
        this.english =english;
        this.math = math;
        this.java = java;
    }
    public void disp()//成绩
    {
        System.out.println("学号："+num+" 姓名："+name+" 的成绩：英语："+english+" 数学："+math+" java："+java+"");
    }
    public void sum()//总分
    {
        System.out.println("学号："+num+" 姓名："+name+" 的总分："+(english+math+java));
    }
}
